package main

import (
	"flag"
	"go.uber.org/zap"
	"shendaNFT/config"
	"shendaNFT/pkg/client"
	"shendaNFT/pkg/log"
	"shendaNFT/pkg/web"
)

func main() {
	logLevel := zap.LevelFlag("logLevel", zap.DebugLevel, "log level")
	configFile := flag.String("config", "config.json", "config file path")
	flag.Parse()
	cfg := config.New(*configFile)
	logger := log.New(logLevel)
	clt := client.New(cfg, logger)
	srv := web.New(clt, logger)
	srv.Run()
}
